
* OPEN STATA OUTPUT FILE LOG *


log using "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Output/APPENDIX D MODELS.04-20-2021.smcl", replace

   
  

******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
 
 
   
   
   **** QUANTILE SURVIVAL MODELS: ASYMMETRIC LAPLACE MLE CONDITIONAL DENSITY SURVIVAL MODELS OF CONFIRMATION DECAY ****
 
 
   **** APPENDIX D: EVALUATING THE INTERACTION BETWEEN IDEOLOGICAL INTER BRANCH POLICY CONFLICT & DECISION MAKER INDEPENDENCE IN RELATION TO PARTISAN INTER BRANCH POLICY CONFLICT ****
      
          **** APPENDIX D: D.1: EVALUATING UNIFIED/(Divided Partisan Control) OF SENATE-PRESIDENT DISTINCTIONS WITH RESPECT TO INTER BRANCH POLICY CONFLICT (H1) & 
          **** APPENDIX D: D.2: EVALUATING UNIFIED/(Divided Partisan Control) OF SENATE-PRESIDENT DISTINCTIONS WITH RESPECT TO AGENCY DECISION MAKER INDEPENDENCE (H3)      
   
 
 
 
 
 
 * OPEN UPDATED "CONFIRMATION DYNAMICS" DATABASE [08-13-2020] *
 
use "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Data/Confirmation Dynamics.Database.08-13-2020.FINAL.dta", replace



******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



*** "DUE DILIGENCE" CONTEXTUAL EFFECTS BASED ON POSITION TYPE [TIER 1 VERSUS TIER 2 NOMINEE SLOPE DIFFERENCES] ***
*** NOTE: CONTEXTUAL VARIABLES THAT APPEAR MULTIPLICATIVE/INTERACTION FORM ARE RESCALED TO BE ZERO BOUNDED FOR EASE OF INTERPRETATION OF ADDITIVE BASELINE EFFECTS ***



**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************




**** OUTCOME EQUATIONS: PREDICT CONFIRMATION DELAY DURATION (IN DAYS) USING SINGLE RECORD EVENTS ****





*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



**** APPENDIX D.1: EVALUATING UNIFIED/(Divided Partisan Control) OF SENATE-PRESIDENT DISTINCTIONS WITH RESPECT TO INTER BRANCH POLICY CONFLICT (H1) **** 
 
 

*** GENERATE DIVIDED GOVERNMENT CONDITIONAL INTERACTIONS WITH IDEOLOGICAL DISTANCE BETWEEN SENATE FILIBUSTER PIVOT AND PRESIDENT ***


** create two-way interaction between Senate Filibuster-President Ideological Distance & (Divided Partisan Control) of President & Senate **
gen filipresdistdgzb = filipresdistancelewiszb*dividedgov   
*
** create two-way interaction between Tier1/Tier 2 Nominees & (Divided Partisan Control) of President & Senate **
gen toplevel2dg = toplevel2*dividedgov 

*
** create three-way interaction between Senate Filibuster-President Ideological Distance & Tier1/Tier 2 Nominees & (Divided Partisan Control) of President & Senate **
gen filiprestl2dgzb = filipresdistancelewiszb*toplevel2*dividedgov  






*** PART 1: MODELS ANALAYZING OVERALL CONFIRMATION DELAY [CONFIRMATION DATE - NOMINATION DATE] *** 


                                                                                                                                                                                                                                                                 

*** MODEL 1: PREDICTING TIME FROM NOMINATION TO TIME TO CONFIRMATION ON SENATE FLOOR [confdur] - NON-AUGMENTED MODEL (DOES NOT ACCOUNT FOR SAMPLE SELECTION BIAS) ****


 
*** ASYMMETRIC LAPLACE MLE CONDITIONAL QUANTILE SURVIVAL REGRESSION PERCENTILES ["DUE DILIGENCE" MODEL] ***

laplacereg confdur  filipresdistancelewiszb filipresdistlewiszbtoplev2  filipresdistdgzb filiprestl2dgzb toplevel2dg  dividedgov ///
senpartydiffmedianlewiszb senpartydiffmedlewiszbtoplev2  senworkload senhearing excalendarcong senmajagencyideoloppose senmajagencyideolalign agencyindzb  agencyindzbtoplev2  ///
soucountagency1  presappnom endsession newpresterm fvatreated toplevel2 zloyalmedianzb zloyalmedianzbtoplev2 zmecompmedian zpecompmedian  ///
gender minority admintermyr1  admintermyr2 admintermyr3 bush41 clinton bush43 if confirmselectin==1, ///
failure(confirmobserved) quantiles (1 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 99) seed(123) reps(1000)
*


*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
 

*** POST-ESTIMATION LINCOMS ONLY FOR H1 [SENATE FILIBUSTER - PRESIDENT IDEOLOGICAL DISTANCE] CONTEXTUAL POSITION TYPE SLOPE PARAMETER DIFFERENCES FOR "DUE DILIGENCE" COVARIATES ///
*** TO EVALUATE MAX-MIN RANGE IMPACT OF COVARIATE ON CONFIRMATION DELAY OUTCOME VARIABLE ***
  

*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************

 
set matsize 800           
 
*** (Unified Partisan Control) OF SENATE & PRESIDENCY ***


*** ESTIMATE CONDITIONAL MIN - MAX [0.374 - 0.000 = 0.374] RANGE EFFECTS [PURPOSE: EVALUATE SUBSTANTIVE NUMERICAL IMPACT OF COEFFICIENTS IN A COMPARABLE MANNER] ***

lincom [q01]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q05]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q10]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q15]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q20]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q25]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q30]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q35]filipresdistlewiszbtoplev2   * 0.374 
*
lincom [q40]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q45]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q50]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q55]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q60]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q65]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q70]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q75]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q80]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q85]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q90]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q95]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q99]filipresdistlewiszbtoplev2   * 0.374
*
putexcel set "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use1.xlsx", modify
local i=1
foreach h in 01 05 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 99 {
quietly lincom [q`h']filipresdistlewiszbtoplev2 * 0.374
gen pointestimates`h' = r(estimate)
gen cilower`h' = pointestimates`h' - (1.96*r(se))
gen ciupper`h' = pointestimates`h' + (1.96*r(se))
putexcel A`i'= `h'
putexcel B`i'=(r(estimate)) 
putexcel C`i'=(r(estimate) - (1.96*r(se))) 
putexcel D`i'=(r(estimate) + (1.96*r(se))) 
local i=`i'+1
}
import excel "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use1.xlsx", sheet("Sheet1") clear

twoway (rarea C D A, color(gs10)) (line B A, color(gs0)), title("|President-Senate Filibuster Pivot|" "(Unified Partisan Control)", size(medsmall)) ytitle("Confirmation Delay (Days)") xtitle("") ylabel(-50(50)100, angle(0)) legend(off) yline(0,lcolor(gs8) lpattern(dash))
*
graph save "Graph" "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/FigureD2A1.gph"

graph export "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/EPS/Appendix D/FigureD2A1.eps"

***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************

 
 
*** (Divided Partisan Control) OF SENATE & PRESIDENCY ***


*** ESTIMATE CONDITIONAL MIN - MAX [UNIFIED: 0.374 - 0.000 = 0.374; DIVIDED: 0.401 - 0.178 = 0.223] RANGE EFFECTS [PURPOSE: EVALUATE SUBSTANTIVE NUMERICAL IMPACT OF COEFFICIENTS IN  A COMPARABLE MANNER] ***

lincom [q01]filipresdistlewiszbtoplev2   * 0.374 + [q01]filiprestl2dgzb   * 0.223
*
lincom [q05]filipresdistlewiszbtoplev2   * 0.374 + [q05]filiprestl2dgzb   * 0.223
*
lincom [q10]filipresdistlewiszbtoplev2   * 0.374 + [q10]filiprestl2dgzb   * 0.223
*
lincom [q15]filipresdistlewiszbtoplev2   * 0.374 + [q15]filiprestl2dgzb   * 0.223
*
lincom [q20]filipresdistlewiszbtoplev2   * 0.374 + [q20]filiprestl2dgzb   * 0.223
*
lincom [q25]filipresdistlewiszbtoplev2   * 0.374 + [q25]filiprestl2dgzb   * 0.223
*
lincom [q30]filipresdistlewiszbtoplev2   * 0.374 + [q30]filiprestl2dgzb   * 0.223
*
lincom [q35]filipresdistlewiszbtoplev2   * 0.374 + [q35]filiprestl2dgzb   * 0.223
*
lincom [q40]filipresdistlewiszbtoplev2   * 0.374 + [q40]filiprestl2dgzb   * 0.223
*
lincom [q45]filipresdistlewiszbtoplev2   * 0.374 + [q45]filiprestl2dgzb   * 0.223
*
lincom [q50]filipresdistlewiszbtoplev2   * 0.374 + [q50]filiprestl2dgzb   * 0.223
*
lincom [q55]filipresdistlewiszbtoplev2   * 0.374 + [q55]filiprestl2dgzb   * 0.223
*
lincom [q60]filipresdistlewiszbtoplev2   * 0.374 + [q60]filiprestl2dgzb   * 0.223
*
lincom [q65]filipresdistlewiszbtoplev2   * 0.374 + [q65]filiprestl2dgzb   * 0.223
*
lincom [q70]filipresdistlewiszbtoplev2   * 0.374 + [q70]filiprestl2dgzb   * 0.223
*
lincom [q75]filipresdistlewiszbtoplev2   * 0.374 + [q75]filiprestl2dgzb   * 0.223
*
lincom [q80]filipresdistlewiszbtoplev2   * 0.374 + [q80]filiprestl2dgzb   * 0.223
*
lincom [q85]filipresdistlewiszbtoplev2   * 0.374 + [q85]filiprestl2dgzb   * 0.223
*
lincom [q90]filipresdistlewiszbtoplev2   * 0.374 + [q90]filiprestl2dgzb   * 0.223
*
lincom [q95]filipresdistlewiszbtoplev2   * 0.374 + [q95]filiprestl2dgzb   * 0.223
*
lincom [q99]filipresdistlewiszbtoplev2   * 0.374 + [q99]filiprestl2dgzb   * 0.223
*
putexcel set "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use2.xlsx", modify
local i=1
foreach h in 01 05 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 99 {
quietly lincom [q`h']filipresdistlewiszbtoplev2 * 0.374 + [q`h']filiprestl2dgzb * 0.223
gen pointestimates`h' = r(estimate)
gen cilower`h' = pointestimates`h' - (1.96*r(se))
gen ciupper`h' = pointestimates`h' + (1.96*r(se))
putexcel A`i'= `h'
putexcel B`i'=(r(estimate)) 
putexcel C`i'=(r(estimate) - (1.96*r(se))) 
putexcel D`i'=(r(estimate) + (1.96*r(se))) 
local i=`i'+1
}
import excel "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use2.xlsx", sheet("Sheet1") clear

twoway (rarea C D A, color(gs10)) (line B A, color(gs0)), title("|President-Senate Filibuster Pivot|" "(Divided Partisan Control)", size(medsmall)) ytitle("Confirmation Delay (Days)") xtitle("") ylabel(-100(50)100, angle(0)) legend(off) yline(0,lcolor(gs8) lpattern(dash))
* 
graph save "Graph" "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/FigureD2A2.gph"

graph export "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/EPS/Appendix D/FigureD2A2.eps"
 
 
 

*graph D1.1
cd "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D"

gr combine FigureD2A1.gph  FigureD2A2.gph, b1title("Quantiles") iscale(1) 

graph save "Graph" "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/FigureD11Acomb.gph"

graph export "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/EPS/Appendix D/FigureD11Acomb.eps"
*

************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



*** PART 2: MODELS ANALYZING SENATE COMMITTEE CONFIRMATION DELAY: INFORMATIONAL VETTING [REPORTED OUT OF SENATE COMMITTEE DATE - NOMINATION DATE] *** 



 
 * OPEN UPDATED "CONFIRMATION DYNAMICS" DATABASE [08-13-2020] *
 
use "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Data/Confirmation Dynamics.Database.08-13-2020.FINAL.dta", replace



************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************

 


**** APPENDIX D.1: EVALUATING UNIFIED/(Divided Partisan Control) OF SENATE-PRESIDENT DISTINCTIONS WITH RESPECT TO INTER BRANCH POLICY CONFLICT (H1) **** 



** create two-way interaction between Senate Filibuster-President Ideological Distance & (Divided Partisan Control) of President & Senate **
gen filipresdistdgzb = filipresdistancelewiszb*dividedgov   
*
** create two-way interaction between Tier1/Tier 2 Nominees & (Divided Partisan Control) of President & Senate **
gen toplevel2dg = toplevel2*dividedgov 

*
** create three-way interaction between Senate Filibuster-President Ideological Distance & Tier1/Tier 2 Nominees & (Divided Partisan Control) of President & Senate **
gen filiprestl2dgzb = filipresdistancelewiszb*toplevel2*dividedgov  

                                                                                                                                                                                                     
                                                                 

*** MODEL 2: PREDICTING TIME FROM NOMINATION TO TIME TO REPORTED OUT OF SENATE COMMITTEE [LEGVETDUR] - NON-AUGMENTED MODEL (DOES NOT ACCOUNT FOR SAMPLE SELECTION BIAS) ****

  
     
*** ASYMMETRIC LAPLACE MLE CONDITIONAL QUANTILE SURVIVAL REGRESSION PERCENTILES ["DUE DILIGENCE" MODEL] ***


laplacereg legvetdur filipresdistancelewiszb filipresdistlewiszbtoplev2  filipresdistdgzb filiprestl2dgzb toplevel2dg  dividedgov ///
senpartydiffmedianlewiszb senpartydiffmedlewiszbtoplev2  senworkload senhearing excalendarcong senmajagencyideoloppose senmajagencyideolalign agencyindzb agencyindzbtoplev2  ///
soucountagency1  presappnom endsession newpresterm fvatreated toplevel2 zloyalmedianzb zloyalmedianzbtoplev2 zmecompmedian zpecompmedian ///
gender minority admintermyr1  admintermyr2 admintermyr3 bush41 clinton bush43 if confirmselectin==1, ///
failure(confirmobserved) quantiles (1 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 99) seed(123) reps(1000)
*


*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
 

*** POST-ESTIMATION LINCOMS ONLY FOR H1 [SENATE FILIBUSTER - PRESIDENT IDEOLOGICAL DISTANCE] CONTEXTUAL POSITION TYPE SLOPE PARAMETER DIFFERENCES FOR "DUE DILIGENCE" COVARIATES ///
*** TO EVALUATE MAX-MIN RANGE IMPACT OF COVARIATE ON CONFIRMATION DELAY OUTCOME VARIABLE ***
  

*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************

 
set matsize 800           
 
*** (Unified Partisan Control) OF SENATE & PRESIDENCY ***


*** ESTIMATE CONDITIONAL MIN - MAX [0.374 - 0.000 = 0.374] RANGE EFFECTS [PURPOSE: EVALUATE SUBSTANTIVE NUMERICAL IMPACT OF COEFFICIENTS IN A COMPARABLE MANNER] ***

lincom [q01]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q05]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q10]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q15]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q20]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q25]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q30]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q35]filipresdistlewiszbtoplev2   * 0.374 
*
lincom [q40]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q45]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q50]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q55]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q60]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q65]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q70]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q75]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q80]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q85]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q90]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q95]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q99]filipresdistlewiszbtoplev2   * 0.374
*
putexcel set "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use3.xlsx", modify
local i=1
foreach h in 01 05 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 99 {
quietly lincom [q`h']filipresdistlewiszbtoplev2 * 0.374
gen pointestimates`h' = r(estimate)
gen cilower`h' = pointestimates`h' - (1.96*r(se))
gen ciupper`h' = pointestimates`h' + (1.96*r(se))
putexcel A`i'= `h'
putexcel B`i'=(r(estimate)) 
putexcel C`i'=(r(estimate) - (1.96*r(se))) 
putexcel D`i'=(r(estimate) + (1.96*r(se))) 
local i=`i'+1
}
import excel "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use3.xlsx", sheet("Sheet1") clear

twoway (rarea C D A, color(gs10)) (line B A, color(gs0)), title("|President-Senate Filibuster Pivot|" "(Unified Partisan Control)", size(medsmall)) ytitle("Confirmation Delay (Days)") xtitle("") ylabel(-50(50)100, angle(0)) legend(off) yline(0,lcolor(gs8) lpattern(dash))
* 
graph save "Graph" "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/FigureD3A1.gph"

graph export "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/EPS/Appendix D/FigureD3A1.eps"

***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
 
 
*** (Divided Partisan Control) OF SENATE & PRESIDENCY ***


*** ESTIMATE CONDITIONAL MIN - MAX [UNIFIED: 0.374 - 0.000 = 0.374; DIVIDED: 0.401 - 0.178 = 0.223] RANGE EFFECTS [PURPOSE: EVALUATE SUBSTANTIVE NUMERICAL IMPACT OF COEFFICIENTS IN  A COMPARABLE MANNER] ***

lincom [q01]filipresdistlewiszbtoplev2   * 0.374 + [q01]filiprestl2dgzb   * 0.223
*
lincom [q05]filipresdistlewiszbtoplev2   * 0.374 + [q05]filiprestl2dgzb   * 0.223
*
lincom [q10]filipresdistlewiszbtoplev2   * 0.374 + [q10]filiprestl2dgzb   * 0.223
*
lincom [q15]filipresdistlewiszbtoplev2   * 0.374 + [q15]filiprestl2dgzb   * 0.223
*
lincom [q20]filipresdistlewiszbtoplev2   * 0.374 + [q20]filiprestl2dgzb   * 0.223
*
lincom [q25]filipresdistlewiszbtoplev2   * 0.374 + [q25]filiprestl2dgzb   * 0.223
*
lincom [q30]filipresdistlewiszbtoplev2   * 0.374 + [q30]filiprestl2dgzb   * 0.223
*
lincom [q35]filipresdistlewiszbtoplev2   * 0.374 + [q35]filiprestl2dgzb   * 0.223
*
lincom [q40]filipresdistlewiszbtoplev2   * 0.374 + [q40]filiprestl2dgzb   * 0.223
*
lincom [q45]filipresdistlewiszbtoplev2   * 0.374 + [q45]filiprestl2dgzb   * 0.223
*
lincom [q50]filipresdistlewiszbtoplev2   * 0.374 + [q50]filiprestl2dgzb   * 0.223
*
lincom [q55]filipresdistlewiszbtoplev2   * 0.374 + [q55]filiprestl2dgzb   * 0.223
*
lincom [q60]filipresdistlewiszbtoplev2   * 0.374 + [q60]filiprestl2dgzb   * 0.223
*
lincom [q65]filipresdistlewiszbtoplev2   * 0.374 + [q65]filiprestl2dgzb   * 0.223
*
lincom [q70]filipresdistlewiszbtoplev2   * 0.374 + [q70]filiprestl2dgzb   * 0.223
*
lincom [q75]filipresdistlewiszbtoplev2   * 0.374 + [q75]filiprestl2dgzb   * 0.223
*
lincom [q80]filipresdistlewiszbtoplev2   * 0.374 + [q80]filiprestl2dgzb   * 0.223
*
lincom [q85]filipresdistlewiszbtoplev2   * 0.374 + [q85]filiprestl2dgzb   * 0.223
*
lincom [q90]filipresdistlewiszbtoplev2   * 0.374 + [q90]filiprestl2dgzb   * 0.223
*
lincom [q95]filipresdistlewiszbtoplev2   * 0.374 + [q95]filiprestl2dgzb   * 0.223
*
lincom [q99]filipresdistlewiszbtoplev2   * 0.374 + [q99]filiprestl2dgzb   * 0.223
*
putexcel set "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use4.xlsx", modify
local i=1
foreach h in 01 05 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 99 {
quietly lincom [q`h']filipresdistlewiszbtoplev2 * 0.374 +  [q`h']filiprestl2dgzb * 0.223
gen pointestimates`h' = r(estimate)
gen cilower`h' = pointestimates`h' - (1.96*r(se))
gen ciupper`h' = pointestimates`h' + (1.96*r(se))
putexcel A`i'= `h'
putexcel B`i'=(r(estimate)) 
putexcel C`i'=(r(estimate) - (1.96*r(se))) 
putexcel D`i'=(r(estimate) + (1.96*r(se))) 
local i=`i'+1
}
import excel "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use4.xlsx", sheet("Sheet1") clear

twoway (rarea C D A, color(gs10)) (line B A, color(gs0)), title("|President-Senate Filibuster Pivot|" "(Divided Partisan Control)", size(medsmall)) ytitle("Confirmation Delay (Days)") xtitle("") ylabel(-100(50)100, angle(0)) legend(off) yline(0,lcolor(gs8) lpattern(dash))
*  
graph save "Graph" "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/FigureD3A2.gph"

graph export "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/EPS/Appendix D/FigureD3A2.eps"
 
*
*
*
*graph D1.2
cd "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D"

gr combine FigureD3A1.gph FigureD3A2.gph, b1title("Quantiles") iscale(1) 

graph save "Graph" "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/FigureD12Acomb.gph"

graph export "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/EPS/Appendix D/FigureD12Acomb.eps"
*


********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************


  

*** PART 3: MODELS ANALYZING PROCEDURAL VETTING ON SENATE FLOOR STAGE [CONFIRMATION DATE - REPORTED OUT OF SENATE COMMITTEE DATE] *** 


 
  
 * OPEN UPDATED "CONFIRMATION DYNAMICS" DATABASE [08-13-2020] *
 
use "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Data/Confirmation Dynamics.Database.08-13-2020.FINAL.dta", replace



*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



**** APPENDIX D.1: EVALUATING UNIFIED/(Divided Partisan Control) OF SENATE-PRESIDENT DISTINCTIONS WITH RESPECT TO INTER BRANCH POLICY CONFLICT (H1) **** 


** create two-way interaction between Senate Filibuster-President Ideological Distance & (Divided Partisan Control) of President & Senate **
gen filipresdistdgzb = filipresdistancelewiszb*dividedgov   
*
** create two-way interaction between Tier1/Tier 2 Nominees & (Divided Partisan Control) of President & Senate **
gen toplevel2dg = toplevel2*dividedgov 

*
** create three-way interaction between Senate Filibuster-President Ideological Distance & Tier1/Tier 2 Nominees & (Divided Partisan Control) of President & Senate **
gen filiprestl2dgzb = filipresdistancelewiszb*toplevel2*dividedgov  

 
                                                                                                                                                                                                                                      
																																																			   
																																																							   
*** MODEL 3: PREDICTING TIME FROM REPORTED OUT OF SENATE COMMITTEE TO CONFIRMATION ON SENATE FLOOR [POLVETDUR] - NON-AUGMENTED MODEL (DOES NOT ACCOUNT FOR SAMPLE SELECTION BIAS) ****


     
*** ASYMMETRIC LAPLACE MLE CONDITIONAL QUANTILE SURVIVAL REGRESSION PERCENTILES ["DUE DILIGENCE" MODEL] ***

laplacereg polvetdur  filipresdistancelewiszb filipresdistlewiszbtoplev2  filipresdistdgzb filiprestl2dgzb toplevel2dg  dividedgov ///
senpartydiffmedianlewiszb senpartydiffmedlewiszbtoplev2  senworkload senhearing excalendarcong senmajagencyideoloppose senmajagencyideolalign agencyindzb  agencyindzbtoplev2  ///
soucountagency1  presappnom endsession newpresterm fvatreated toplevel2 zloyalmedianzb zloyalmedianzbtoplev2 zmecompmedian zpecompmedian ///
gender minority admintermyr1  admintermyr2 admintermyr3 bush41 clinton bush43 if confirmselectin==1, ///
failure(confirmobserved) quantiles (1 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 99) seed(123) reps(1000)
*


*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
 

*** POST-ESTIMATION LINCOMS ONLY FOR H1 [SENATE FILIBUSTER - PRESIDENT IDEOLOGICAL DISTANCE] CONTEXTUAL POSITION TYPE SLOPE PARAMETER DIFFERENCES FOR "DUE DILIGENCE" COVARIATES ///
*** TO EVALUATE MAX-MIN RANGE IMPACT OF COVARIATE ON CONFIRMATION DELAY OUTCOME VARIABLE ***
  

*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
 
set matsize 800           
 
*** (Unified Partisan Control) OF SENATE & PRESIDENCY ***
*** ESTIMATE CONDITIONAL MIN - MAX [0.374 - 0.000 = 0.374] RANGE EFFECTS [PURPOSE: EVALUATE SUBSTANTIVE NUMERICAL IMPACT OF COEFFICIENTS IN A COMPARABLE MANNER] ***

lincom [q01]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q05]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q10]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q15]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q20]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q25]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q30]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q35]filipresdistlewiszbtoplev2   * 0.374 
*
lincom [q40]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q45]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q50]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q55]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q60]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q65]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q70]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q75]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q80]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q85]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q90]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q95]filipresdistlewiszbtoplev2   * 0.374
*
lincom [q99]filipresdistlewiszbtoplev2   * 0.374
*
putexcel set "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use5.xlsx", modify
local i=1
foreach h in 01 05 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 99 {
quietly lincom [q`h']filipresdistlewiszbtoplev2 * 0.374
gen pointestimates`h' = r(estimate)
gen cilower`h' = pointestimates`h' - (1.96*r(se))
gen ciupper`h' = pointestimates`h' + (1.96*r(se))
putexcel A`i'= `h'
putexcel B`i'=(r(estimate)) 
putexcel C`i'=(r(estimate) - (1.96*r(se))) 
putexcel D`i'=(r(estimate) + (1.96*r(se))) 
local i=`i'+1
}
import excel "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use5.xlsx", sheet("Sheet1") clear

twoway (rarea C D A, color(gs10)) (line B A, color(gs0)), title("|President-Senate Filibuster Pivot|" "(Unified Partisan Control)", size(medsmall)) ytitle("Confirmation Delay (Days)") xtitle("") ylabel(-50(50)50, angle(0)) legend(off) yline(0,lcolor(gs8) lpattern(dash))
*  
graph save "Graph" "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/FigureD4A1.gph"

graph export "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/EPS/Appendix D/FigureD4A1.eps"

**********************************************************************************************************************************************************************************************************
**********************************************************************************************************************************************************************************************************
**********************************************************************************************************************************************************************************************************
**********************************************************************************************************************************************************************************************************
*********************************************************************************************************************************************************************************************************
 
 
*** (Divided Partisan Control) OF SENATE & PRESIDENCY ***


*** ESTIMATE CONDITIONAL MIN - MAX [UNIFIED: 0.374 - 0.000 = 0.374; DIVIDED: 0.401 - 0.178 = 0.223] RANGE EFFECTS [PURPOSE: EVALUATE SUBSTANTIVE NUMERICAL IMPACT OF COEFFICIENTS IN  A COMPARABLE MANNER] ***

lincom [q01]filipresdistlewiszbtoplev2   * 0.374 + [q01]filiprestl2dgzb   * 0.223
*
lincom [q05]filipresdistlewiszbtoplev2   * 0.374 + [q05]filiprestl2dgzb   * 0.223
*
lincom [q10]filipresdistlewiszbtoplev2   * 0.374 + [q10]filiprestl2dgzb   * 0.223
*
lincom [q15]filipresdistlewiszbtoplev2   * 0.374 + [q15]filiprestl2dgzb   * 0.223
*
lincom [q20]filipresdistlewiszbtoplev2   * 0.374 + [q20]filiprestl2dgzb   * 0.223
*
lincom [q25]filipresdistlewiszbtoplev2   * 0.374 + [q25]filiprestl2dgzb   * 0.223
*
lincom [q30]filipresdistlewiszbtoplev2   * 0.374 + [q30]filiprestl2dgzb   * 0.223
*
lincom [q35]filipresdistlewiszbtoplev2   * 0.374 + [q35]filiprestl2dgzb   * 0.223
*
lincom [q40]filipresdistlewiszbtoplev2   * 0.374 + [q40]filiprestl2dgzb   * 0.223
*
lincom [q45]filipresdistlewiszbtoplev2   * 0.374 + [q45]filiprestl2dgzb   * 0.223
*
lincom [q50]filipresdistlewiszbtoplev2   * 0.374 + [q50]filiprestl2dgzb   * 0.223
*
lincom [q55]filipresdistlewiszbtoplev2   * 0.374 + [q55]filiprestl2dgzb   * 0.223
*
lincom [q60]filipresdistlewiszbtoplev2   * 0.374 + [q60]filiprestl2dgzb   * 0.223
*
lincom [q65]filipresdistlewiszbtoplev2   * 0.374 + [q65]filiprestl2dgzb   * 0.223
*
lincom [q70]filipresdistlewiszbtoplev2   * 0.374 + [q70]filiprestl2dgzb   * 0.223
*
lincom [q75]filipresdistlewiszbtoplev2   * 0.374 + [q75]filiprestl2dgzb   * 0.223
*
lincom [q80]filipresdistlewiszbtoplev2   * 0.374 + [q80]filiprestl2dgzb   * 0.223
*
lincom [q85]filipresdistlewiszbtoplev2   * 0.374 + [q85]filiprestl2dgzb   * 0.223
*
lincom [q90]filipresdistlewiszbtoplev2   * 0.374 + [q90]filiprestl2dgzb   * 0.223
*
lincom [q95]filipresdistlewiszbtoplev2   * 0.374 + [q95]filiprestl2dgzb   * 0.223
*
lincom [q99]filipresdistlewiszbtoplev2   * 0.374 + [q99]filiprestl2dgzb   * 0.223
*
putexcel set "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use6.xlsx", modify
local i=1
foreach h in 01 05 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 99 {
quietly lincom [q`h']filipresdistlewiszbtoplev2 * 0.374 + [q`h']filiprestl2dgzb * 0.223
gen pointestimates`h' = r(estimate)
gen cilower`h' = pointestimates`h' - (1.96*r(se))
gen ciupper`h' = pointestimates`h' + (1.96*r(se))
putexcel A`i'= `h'
putexcel B`i'=(r(estimate)) 
putexcel C`i'=(r(estimate) - (1.96*r(se))) 
putexcel D`i'=(r(estimate) + (1.96*r(se))) 
local i=`i'+1
}
import excel "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use6.xlsx", sheet("Sheet1") clear

twoway (rarea C D A, color(gs10)) (line B A, color(gs0)), title("|President-Senate Filibuster Pivot|" "(Divided Partisan Control)", size(medsmall)) ytitle("Confirmation Delay (Days)") xtitle("") ylabel(-50(50)50, angle(0)) legend(off) yline(0,lcolor(gs8) lpattern(dash))
*   
graph save "Graph" "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/FigureD4A2.gph"

graph export "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/EPS/Appendix D/FigureD4A2.eps"
 
*
*
*
*graph D1.3
cd "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D"

gr combine FigureD4A1.gph  FigureD4A2.gph, b1title("Quantiles") iscale(1) 

graph save "Graph" "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/FigureD13Acomb.gph"

graph export "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/EPS/Appendix D/FigureD13Acomb.eps"
*
************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
 

  

   
   **** QUANTILE SURVIVAL MODELS: ASYMMETRIC LAPLACE MLE CONDITIONAL DENSITY SURVIVAL MODELS OF CONFIRMATION DECAY ****
 
 
 
 * OPEN UPDATED "CONFIRMATION DYNAMICS" DATABASE [08-13-2020] *
 
use "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Data/Confirmation Dynamics.Database.08-13-2020.FINAL.dta", replace


******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



*** "DUE DILIGENCE" CONTEXTUAL EFFECTS BASED ON POSITION TYPE [TIER 1 VERSUS TIER 2 NOMINEE SLOPE DIFFERENCES] ***
*** NOTE: CONTEXTUAL VARIABLES THAT APPEAR MULTIPLICATIVE/INTERACTION FORM ARE RESCALED TO BE ZERO BOUNDED FOR EASE OF INTERPRETATION OF ADDITIVE BASELINE EFFECTS ***



******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************




**** OUTCOME EQUATIONS: PREDICT CONFIRMATION DELAY DURATION (IN DAYS) USING SINGLE RECORD EVENTS ****





*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************





****   D.2: EVALUATING UNIFIED/(Divided Partisan Control) OF SENATE-PRESIDENT DISTINCTIONS WITH RESPECT TO AGENCY DECISION MAKER INDEPENDENCE (H3)     **** 
 
 
 

*** GENERATE DIVIDED GOVERNMENT CONDITIONAL INTERACTIONS WITH AGENCY DECISION MAKER INDEPENDENCE ***


** create two-way interaction between Agency Decision Maker Independnce & (Divided Partisan Control) of President & Senate **
gen agencyindzbdgzb = agencyindzb*dividedgov   
*
** create two-way interaction between Tier1/Tier 2 Nominees & (Divided Partisan Control) of President & Senate **
gen toplevel2dg = toplevel2*dividedgov 

*
** create three-way interaction between Agency Decision Maker Independnce  & Tier1/Tier 2 Nominees & (Divided Partisan Control) of President & Senate 
gen agencyindzbl2dgzb = agencyindzb*toplevel2*dividedgov  






*** PART 1: MODELS ANALAYZING OVERALL CONFIRMATION DELAY [CONFIRMATION DATE - NOMINATION DATE] *** 


                                                                                                                                                                                                                                                                 

*** MODEL 1: PREDICTING TIME FROM NOMINATION TO TIME TO CONFIRMATION ON SENATE FLOOR [confdur] - NON-AUGMENTED MODEL (DOES NOT ACCOUNT FOR SAMPLE SELECTION BIAS) ****


 
*** ASYMMETRIC LAPLACE MLE CONDITIONAL QUANTILE SURVIVAL REGRESSION PERCENTILES ["DUE DILIGENCE" MODEL] ***

laplacereg confdur  filipresdistancelewiszb filipresdistlewiszbtoplev2  senpartydiffmedianlewiszb senpartydiffmedlewiszbtoplev2 toplevel2dg  dividedgov  ///
senworkload senhearing excalendarcong senmajagencyideoloppose senmajagencyideolalign agencyindzb agencyindzbtoplev2  agencyindzbdgzb agencyindzbl2dgzb ///
soucountagency1  presappnom endsession newpresterm fvatreated toplevel2 zloyalmedianzb zloyalmedianzbtoplev2 zmecompmedian zpecompmedian  ///
gender minority admintermyr1  admintermyr2 admintermyr3 bush41 clinton bush43 if confirmselectin==1, ///
failure(confirmobserved) quantiles (1 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 99) seed(123) reps(1000)
*


***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
 

*** POST-ESTIMATION LINCOMS ONLY FOR H1 [SENATE FILIBUSTER - PRESIDENT IDEOLOGICAL DISTANCE] CONTEXTUAL POSITION TYPE SLOPE PARAMETER DIFFERENCES FOR "DUE DILIGENCE" COVARIATES ///
*** TO EVALUATE MAX-MIN RANGE IMPACT OF COVARIATE ON CONFIRMATION DELAY OUTCOME VARIABLE ***
  

*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************

 
set matsize 800           
 
 
*** (Unified Partisan Control) OF SENATE & PRESIDENCY ***


*** ESTIMATE CONDITIONAL MIN - MAX [2.673 - 0.000 = 2.673] RANGE EFFECTS [PURPOSE: EVALUATE SUBSTANTIVE NUMERICAL IMPACT OF COEFFICIENTS IN A COMPARABLE MANNER] ***

lincom [q01]agencyindzbtoplev2   * 2.673 
*
lincom [q05]agencyindzbtoplev2   * 2.673 
*
lincom [q10]agencyindzbtoplev2   * 2.673 
*
lincom [q15]agencyindzbtoplev2   * 2.673 
*
lincom [q20]agencyindzbtoplev2   * 2.673 
*
lincom [q25]agencyindzbtoplev2   * 2.673 
*
lincom [q30]agencyindzbtoplev2   * 2.673 
*
lincom [q35]agencyindzbtoplev2   * 2.673 
*
lincom [q40]agencyindzbtoplev2   * 2.673 
*
lincom [q45]agencyindzbtoplev2   * 2.673
*
lincom [q50]agencyindzbtoplev2   * 2.673 
*
lincom [q55]agencyindzbtoplev2   * 2.673 
*
lincom [q60]agencyindzbtoplev2   * 2.673 
*
lincom [q65]agencyindzbtoplev2   * 2.673 
*
lincom [q70]agencyindzbtoplev2   * 2.673 
*
lincom [q75]agencyindzbtoplev2   * 2.673 
*
lincom [q80]agencyindzbtoplev2   * 2.673 
*
lincom [q85]agencyindzbtoplev2   * 2.673 
*
lincom [q90]agencyindzbtoplev2   * 2.673 
*
lincom [q95]agencyindzbtoplev2   * 2.673 
*
lincom [q99]agencyindzbtoplev2   * 2.673 
*
putexcel set "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use7.xlsx", modify
local i=1
foreach h in 01 05 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 99 {
quietly lincom [q`h']agencyindzbtoplev2 * 2.673
gen pointestimates`h' = r(estimate)
gen cilower`h' = pointestimates`h' - (1.96*r(se))
gen ciupper`h' = pointestimates`h' + (1.96*r(se))
putexcel A`i'= `h'
putexcel B`i'=(r(estimate)) 
putexcel C`i'=(r(estimate) - (1.96*r(se))) 
putexcel D`i'=(r(estimate) + (1.96*r(se))) 
local i=`i'+1
}
import excel "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use7.xlsx", sheet("Sheet1") clear

twoway (rarea C D A, color(gs10)) (line B A, color(gs0)), title("Decision Maker Independence" "(Unified Partisan Control)", size(medsmall)) ytitle("Confirmation Delay (Days)") xtitle("") ylabel(-300(50)50, angle(0)) legend(off) yline(0,lcolor(gs8) lpattern(dash))
* 
graph save "Graph" "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/FigureD2B1.gph"

graph export "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/EPS/Appendix D/FigureD2B1.eps"

*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************

 
 
*** (Divided Partisan Control) OF SENATE & PRESIDENCY ***


*** ESTIMATE CONDITIONAL MIN - MAX [UNIFIED & DIVIDED: 2.673 - 0.000 = 2.673] RANGE EFFECTS [PURPOSE: EVALUATE SUBSTANTIVE NUMERICAL IMPACT OF COEFFICIENTS IN A COMPARABLE MANNER] ***

lincom [q01]agencyindzbtoplev2  * 2.673 + [q01]agencyindzbl2dgzb  * 2.673
*
lincom [q05]agencyindzbtoplev2  * 2.673 + [q05]agencyindzbl2dgzb  * 2.673
*
lincom [q10]agencyindzbtoplev2  * 2.673 + [q10]agencyindzbl2dgzb  * 2.673
*
lincom [q15]agencyindzbtoplev2  * 2.673 + [q15]agencyindzbl2dgzb  * 2.673
*
lincom [q20]agencyindzbtoplev2  * 2.673 + [q20]agencyindzbl2dgzb  * 2.673
*
lincom [q25]agencyindzbtoplev2  * 2.673 + [q25]agencyindzbl2dgzb  * 2.673
*
lincom [q30]agencyindzbtoplev2  * 2.673 + [q30]agencyindzbl2dgzb  * 2.673
*
lincom [q35]agencyindzbtoplev2  * 2.673 + [q35]agencyindzbl2dgzb  * 2.673
*
lincom [q40]agencyindzbtoplev2  * 2.673 + [q40]agencyindzbl2dgzb  * 2.673
*
lincom [q45]agencyindzbtoplev2  * 2.673 + [q45]agencyindzbl2dgzb  * 2.673
*
lincom [q50]agencyindzbtoplev2  * 2.673 + [q50]agencyindzbl2dgzb  * 2.673
*
lincom [q55]agencyindzbtoplev2  * 2.673 + [q55]agencyindzbl2dgzb  * 2.673
*
lincom [q60]agencyindzbtoplev2  * 2.673 + [q60]agencyindzbl2dgzb  * 2.673
*
lincom [q65]agencyindzbtoplev2  * 2.673 + [q65]agencyindzbl2dgzb  * 2.673
*
lincom [q70]agencyindzbtoplev2  * 2.673 + [q70]agencyindzbl2dgzb  * 2.673
*
lincom [q75]agencyindzbtoplev2  * 2.673 + [q75]agencyindzbl2dgzb  * 2.673
*
lincom [q80]agencyindzbtoplev2  * 2.673 + [q80]agencyindzbl2dgzb  * 2.673
*
lincom [q85]agencyindzbtoplev2  * 2.673 + [q85]agencyindzbl2dgzb  * 2.673
*
lincom [q90]agencyindzbtoplev2  * 2.673 + [q90]agencyindzbl2dgzb  * 2.673
*
lincom [q95]agencyindzbtoplev2  * 2.673 + [q95]agencyindzbl2dgzb  * 2.673
*
lincom [q99]agencyindzbtoplev2  * 2.673 + [q99]agencyindzbl2dgzb  * 2.673
*
putexcel set "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use8.xlsx", modify
local i=1
foreach h in 01 05 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 99 {
quietly lincom [q`h']agencyindzbtoplev2 * 2.673  + [q`h']agencyindzbl2dgzb * 2.673
gen pointestimates`h' = r(estimate)
gen cilower`h' = pointestimates`h' - (1.96*r(se))
gen ciupper`h' = pointestimates`h' + (1.96*r(se))
putexcel A`i'= `h'
putexcel B`i'=(r(estimate)) 
putexcel C`i'=(r(estimate) - (1.96*r(se))) 
putexcel D`i'=(r(estimate) + (1.96*r(se))) 
local i=`i'+1
}
import excel "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use8.xlsx", sheet("Sheet1") clear

twoway (rarea C D A, color(gs10)) (line B A, color(gs0)), title("Decision Maker Independence" "(Divided Partisan Control)", size(medsmall)) ytitle("Confirmation Delay (Days)") xtitle("") ylabel(-600(50)100, angle(0)) legend(off) yline(0,lcolor(gs8) lpattern(dash))
* 
graph save "Graph" "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/FigureD2B2.gph"

graph export "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/EPS/Appendix D/FigureD2B2.eps"
 
 
 

*graph D2.1
cd "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D"

gr combine FigureD2B1.gph  FigureD2B2.gph, b1title("Quantiles") iscale(1) 

graph save "Graph" "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/FigureD21Acomb.gph"

graph export "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/EPS/Appendix D/FigureD21Acomb.eps"
*
************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************




*** PART 2: MODELS ANALYZING SENATE COMMITTEE CONFIRMATION DELAY: INFORMATIONAL VETTING [REPORTED OUT OF SENATE COMMITTEE DATE - NOMINATION DATE] *** 

 

 * OPEN UPDATED "CONFIRMATION DYNAMICS" DATABASE [08-13-2020] *
 
use "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Data/Confirmation Dynamics.Database.08-13-2020.FINAL.dta", replace



************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************

 


****  D.2: EVALUATING UNIFIED/(Divided Partisan Control) OF SENATE-PRESIDENT DISTINCTIONS WITH RESPECT TO AGENCY DECISION MAKER INDEPENDENCE (H3)    **** 



*** GENERATE DIVIDED GOVERNMENT CONDITIONAL INTERACTIONS WITH AGENCY DECISION MAKER INDEPENDENCE ***


** create two-way interaction between Agency Decision Maker Independnce & (Divided Partisan Control) of President & Senate **
gen agencyindzbdgzb = agencyindzb*dividedgov   
*
** create two-way interaction between Tier1/Tier 2 Nominees & (Divided Partisan Control) of President & Senate **
gen toplevel2dg = toplevel2*dividedgov 

*
** create three-way interaction between Agency Decision Maker Independnce  & Tier1/Tier 2 Nominees & (Divided Partisan Control) of President & Senate 
gen agencyindzbl2dgzb = agencyindzb*toplevel2*dividedgov                                                                                                                                                                                                       
                                                                 

*** MODEL 2: PREDICTING TIME FROM NOMINATION TO TIME TO REPORTED OUT OF SENATE COMMITTEE [LEGVETDUR] - NON-AUGMENTED MODEL (DOES NOT ACCOUNT FOR SAMPLE SELECTION BIAS) ****

  
     
*** ASYMMETRIC LAPLACE MLE CONDITIONAL QUANTILE SURVIVAL REGRESSION PERCENTILES ["DUE DILIGENCE" MODEL] ***


laplacereg legvetdur  filipresdistancelewiszb filipresdistlewiszbtoplev2  senpartydiffmedianlewiszb senpartydiffmedlewiszbtoplev2 toplevel2dg  dividedgov  ///
senworkload senhearing excalendarcong senmajagencyideoloppose senmajagencyideolalign agencyindzb agencyindzbtoplev2  agencyindzbdgzb agencyindzbl2dgzb ///
soucountagency1  presappnom endsession newpresterm fvatreated toplevel2 zloyalmedianzb zloyalmedianzbtoplev2 zmecompmedian zpecompmedian ///
gender minority admintermyr1  admintermyr2 admintermyr3 bush41 clinton bush43 if confirmselectin==1, ///
failure(confirmobserved) quantiles (1 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 99) seed(123) reps(1000)
*


***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
 

*** POST-ESTIMATION LINCOMS ONLY FOR H1 [SENATE FILIBUSTER - PRESIDENT IDEOLOGICAL DISTANCE] CONTEXTUAL POSITION TYPE SLOPE PARAMETER DIFFERENCES FOR "DUE DILIGENCE" COVARIATES ///
*** TO EVALUATE MAX-MIN RANGE IMPACT OF COVARIATE ON CONFIRMATION DELAY OUTCOME VARIABLE ***
  

***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************

 
set matsize 800           

 
*** (Unified Partisan Control) OF SENATE & PRESIDENCY ***


*** ESTIMATE CONDITIONAL MIN - MAX [2.673 - 0.000 = 2.673] RANGE EFFECTS [PURPOSE: EVALUATE SUBSTANTIVE NUMERICAL IMPACT OF COEFFICIENTS IN A COMPARABLE MANNER] ***

lincom [q01]agencyindzbtoplev2   * 2.673
*
lincom [q05]agencyindzbtoplev2   * 2.673
*
lincom [q10]agencyindzbtoplev2   * 2.673
*
lincom [q15]agencyindzbtoplev2   * 2.673
*
lincom [q20]agencyindzbtoplev2   * 2.673
*
lincom [q25]agencyindzbtoplev2   * 2.673
*
lincom [q30]agencyindzbtoplev2   * 2.673
*
lincom [q35]agencyindzbtoplev2   * 2.673 
*
lincom [q40]agencyindzbtoplev2   * 2.673
*
lincom [q45]agencyindzbtoplev2   * 2.673
*
lincom [q50]agencyindzbtoplev2   * 2.673
*
lincom [q55]agencyindzbtoplev2   * 2.673
*
lincom [q60]agencyindzbtoplev2   * 2.673
*
lincom [q65]agencyindzbtoplev2   * 2.673
*
lincom [q70]agencyindzbtoplev2   * 2.673
*
lincom [q75]agencyindzbtoplev2   * 2.673
*
lincom [q80]agencyindzbtoplev2   * 2.673
*
lincom [q85]agencyindzbtoplev2   * 2.673
*
lincom [q90]agencyindzbtoplev2   * 2.673
*
lincom [q95]agencyindzbtoplev2   * 2.673
*
lincom [q99]agencyindzbtoplev2   * 2.673
*
putexcel set "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use9.xlsx", modify
local i=1
foreach h in 01 05 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 99 {
quietly lincom [q`h']agencyindzbtoplev2 * 2.673
gen pointestimates`h' = r(estimate)
gen cilower`h' = pointestimates`h' - (1.96*r(se))
gen ciupper`h' = pointestimates`h' + (1.96*r(se))
putexcel A`i'= `h'
putexcel B`i'=(r(estimate)) 
putexcel C`i'=(r(estimate) - (1.96*r(se))) 
putexcel D`i'=(r(estimate) + (1.96*r(se))) 
local i=`i'+1
}
import excel "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use9.xlsx", sheet("Sheet1") clear

twoway (rarea C D A, color(gs10)) (line B A, color(gs0)), title("Decision Maker Independence" "(Unified Partisan Control)", size(medsmall)) ytitle("Confirmation Delay (Days)") xtitle("") ylabel(-400(50)50, angle(0)) legend(off) yline(0,lcolor(gs8) lpattern(dash))
*  
graph save "Graph" "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/FigureD3B1.gph"

graph export "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/EPS/Appendix D/FigureD3B1.eps"

*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
 
 
*** (Divided Partisan Control) OF SENATE & PRESIDENCY ***


*** ESTIMATE CONDITIONAL MIN - MAX [UNIFIED & DIVIDED: 2.673 - 0.000 = 2.673] RANGE EFFECTS [PURPOSE: EVALUATE SUBSTANTIVE NUMERICAL IMPACT OF COEFFICIENTS IN A COMPARABLE MANNER] ***

lincom [q01]agencyindzbtoplev2  * 2.673 + [q01]agencyindzbl2dgzb  * 2.673
*
lincom [q05]agencyindzbtoplev2  * 2.673 + [q05]agencyindzbl2dgzb  * 2.673
*
lincom [q10]agencyindzbtoplev2  * 2.673 + [q10]agencyindzbl2dgzb  * 2.673
*
lincom [q15]agencyindzbtoplev2  * 2.673 + [q15]agencyindzbl2dgzb  * 2.673
*
lincom [q20]agencyindzbtoplev2  * 2.673 + [q20]agencyindzbl2dgzb  * 2.673
*
lincom [q25]agencyindzbtoplev2  * 2.673 + [q25]agencyindzbl2dgzb  * 2.673
*
lincom [q30]agencyindzbtoplev2  * 2.673 + [q30]agencyindzbl2dgzb  * 2.673
*
lincom [q35]agencyindzbtoplev2  * 2.673 + [q35]agencyindzbl2dgzb  * 2.673
*
lincom [q40]agencyindzbtoplev2  * 2.673 + [q40]agencyindzbl2dgzb  * 2.673
*
lincom [q45]agencyindzbtoplev2  * 2.673 + [q45]agencyindzbl2dgzb  * 2.673
*
lincom [q50]agencyindzbtoplev2  * 2.673 + [q50]agencyindzbl2dgzb  * 2.673
*
lincom [q55]agencyindzbtoplev2  * 2.673 + [q55]agencyindzbl2dgzb  * 2.673
*
lincom [q60]agencyindzbtoplev2  * 2.673 + [q60]agencyindzbl2dgzb  * 2.673
*
lincom [q65]agencyindzbtoplev2  * 2.673 + [q65]agencyindzbl2dgzb  * 2.673
*
lincom [q70]agencyindzbtoplev2  * 2.673 + [q70]agencyindzbl2dgzb  * 2.673
*
lincom [q75]agencyindzbtoplev2  * 2.673 + [q75]agencyindzbl2dgzb  * 2.673
*
lincom [q80]agencyindzbtoplev2  * 2.673 + [q80]agencyindzbl2dgzb  * 2.673
*
lincom [q85]agencyindzbtoplev2  * 2.673 + [q85]agencyindzbl2dgzb  * 2.673
*
lincom [q90]agencyindzbtoplev2  * 2.673 + [q90]agencyindzbl2dgzb  * 2.673
*
lincom [q95]agencyindzbtoplev2  * 2.673 + [q95]agencyindzbl2dgzb  * 2.673
*
lincom [q99]agencyindzbtoplev2  * 2.673 + [q99]agencyindzbl2dgzb  * 2.673
*
putexcel set "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use10.xlsx", modify
local i=1
foreach h in 01 05 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 99 {
quietly lincom [q`h']agencyindzbtoplev2 * 2.673  + [q`h']agencyindzbl2dgzb * 2.673
gen pointestimates`h' = r(estimate)
gen cilower`h' = pointestimates`h' - (1.96*r(se))
gen ciupper`h' = pointestimates`h' + (1.96*r(se))
putexcel A`i'= `h'
putexcel B`i'=(r(estimate)) 
putexcel C`i'=(r(estimate) - (1.96*r(se))) 
putexcel D`i'=(r(estimate) + (1.96*r(se))) 
local i=`i'+1
}
import excel "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use10.xlsx", sheet("Sheet1") clear

twoway (rarea C D A, color(gs10)) (line B A, color(gs0)), title("Decision Maker Independence" "(Divided Partisan Control)", size(medsmall)) ytitle("Confirmation Delay (Days)") xtitle("") ylabel(-700(50)100, angle(0)) legend(off) yline(0,lcolor(gs8) lpattern(dash))
* 
graph save "Graph" "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/FigureD3B2.gph"

graph export "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/EPS/Appendix D/FigureD3B2.eps"
 
*
*
*
*graph D2.2
cd "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D"

gr combine FigureD3B1.gph FigureD3B2.gph, b1title("Quantiles") iscale(1) 

graph save "Graph" "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/FigureD22Acmb.gph"

graph export "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/EPS/Appendix D/FigureD22Acomb.eps"
*

********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************


  

*** PART 3: MODELS ANALYZING PROCEDURAL VETTING ON SENATE FLOOR STAGE [CONFIRMATION DATE - REPORTED OUT OF SENATE COMMITTEE DATE] *** 



 
 * OPEN UPDATED "CONFIRMATION DYNAMICS" DATABASE [08-13-2020] *
 
use "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Data/Confirmation Dynamics.Database.08-13-2020.FINAL.dta", replace




*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



****  D.2: EVALUATING UNIFIED/(Divided Partisan Control) OF SENATE-PRESIDENT DISTINCTIONS WITH RESPECT TO AGENCY DECISION MAKER INDEPENDENCE (H3)   **** 



*** GENERATE DIVIDED GOVERNMENT CONDITIONAL INTERACTIONS WITH AGENCY DECISION MAKER INDEPENDENCE ***

** create two-way interaction between Agency Decision Maker Independnce & (Divided Partisan Control) of President & Senate **
gen agencyindzbdgzb = agencyindzb*dividedgov   
*
** create two-way interaction between Tier1/Tier 2 Nominees & (Divided Partisan Control) of President & Senate **
gen toplevel2dg = toplevel2*dividedgov 

*
** create three-way interaction between Agency Decision Maker Independnce  & Tier1/Tier 2 Nominees & (Divided Partisan Control) of President & Senate 
gen agencyindzbl2dgzb = agencyindzb*toplevel2*dividedgov                                                                                                                                                 
																																																			   
																																																							   
*** MODEL 3: PREDICTING TIME FROM REPORTED OUT OF SENATE COMMITTEE TO CONFIRMATION ON SENATE FLOOR [POLVETDUR] - NON-AUGMENTED MODEL (DOES NOT ACCOUNT FOR SAMPLE SELECTION BIAS) ****


     
*** ASYMMETRIC LAPLACE MLE CONDITIONAL QUANTILE SURVIVAL REGRESSION PERCENTILES ["DUE DILIGENCE" MODEL] ***

laplacereg polvetdur  filipresdistancelewiszb filipresdistlewiszbtoplev2  senpartydiffmedianlewiszb senpartydiffmedlewiszbtoplev2 toplevel2dg  dividedgov  ///
senworkload senhearing excalendarcong senmajagencyideoloppose senmajagencyideolalign agencyindzb agencyindzbtoplev2  agencyindzbdgzb agencyindzbl2dgzb ///
soucountagency1  presappnom endsession newpresterm fvatreated toplevel2 zloyalmedianzb zloyalmedianzbtoplev2 zmecompmedian zpecompmedian ///
gender minority admintermyr1  admintermyr2 admintermyr3 bush41 clinton bush43 if confirmselectin==1, ///
failure(confirmobserved) quantiles (1 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 99) seed(123) reps(1000)
*


*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
 

*** POST-ESTIMATION LINCOMS ONLY FOR H1 [SENATE FILIBUSTER - PRESIDENT IDEOLOGICAL DISTANCE] CONTEXTUAL POSITION TYPE SLOPE PARAMETER DIFFERENCES FOR "DUE DILIGENCE" COVARIATES ///
*** TO EVALUATE MAX-MIN RANGE IMPACT OF COVARIATE ON CONFIRMATION DELAY OUTCOME VARIABLE ***
  

*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
 
set matsize 800           

 
*** (Unified Partisan Control) OF SENATE & PRESIDENCY ***


*** ESTIMATE CONDITIONAL MIN - MAX [2.673 - 0.000 = 2.673] RANGE EFFECTS [PURPOSE: EVALUATE SUBSTANTIVE NUMERICAL IMPACT OF COEFFICIENTS IN A COMPARABLE MANNER] ***

lincom [q01]agencyindzbtoplev2   * 2.673
*
lincom [q05]agencyindzbtoplev2   * 2.673
*
lincom [q10]agencyindzbtoplev2   * 2.673
*
lincom [q15]agencyindzbtoplev2   * 2.673
*
lincom [q20]agencyindzbtoplev2   * 2.673
*
lincom [q25]agencyindzbtoplev2   * 2.673
*
lincom [q30]agencyindzbtoplev2   * 2.673
*
lincom [q35]agencyindzbtoplev2   * 2.673 
*
lincom [q40]agencyindzbtoplev2   * 2.673
*
lincom [q45]agencyindzbtoplev2   * 2.673
*
lincom [q50]agencyindzbtoplev2   * 2.673
*
lincom [q55]agencyindzbtoplev2   * 2.673
*
lincom [q60]agencyindzbtoplev2   * 2.673
*
lincom [q65]agencyindzbtoplev2   * 2.673
*
lincom [q70]agencyindzbtoplev2   * 2.673
*
lincom [q75]agencyindzbtoplev2   * 2.673
*
lincom [q80]agencyindzbtoplev2   * 2.673
*
lincom [q85]agencyindzbtoplev2   * 2.673
*
lincom [q90]agencyindzbtoplev2   * 2.673
*
lincom [q95]agencyindzbtoplev2   * 2.673
*
lincom [q99]agencyindzbtoplev2   * 2.673
*
putexcel set "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use11.xlsx", modify
local i=1
foreach h in 01 05 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 99 {
quietly lincom [q`h']agencyindzbtoplev2 * 2.673
gen pointestimates`h' = r(estimate)
gen cilower`h' = pointestimates`h' - (1.96*r(se))
gen ciupper`h' = pointestimates`h' + (1.96*r(se))
putexcel A`i'= `h'
putexcel B`i'=(r(estimate)) 
putexcel C`i'=(r(estimate) - (1.96*r(se))) 
putexcel D`i'=(r(estimate) + (1.96*r(se))) 
local i=`i'+1
}
import excel "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use11.xlsx", sheet("Sheet1") clear

twoway (rarea C D A, color(gs10)) (line B A, color(gs0)), title("Decision Maker Independence" "(Unified Partisan Control)", size(medsmall)) ytitle("Confirmation Delay (Days)") xtitle("") ylabel(-50(50)100, angle(0)) legend(off) yline(0,lcolor(gs8) lpattern(dash))
* 
graph save "Graph" "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/FigureD4B1.gph"

graph export "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/EPS/Appendix D/FigureD4B1.eps"

*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
 
 
 
*** (Divided Partisan Control) OF SENATE & PRESIDENCY ***


*** ESTIMATE CONDITIONAL MIN - MAX [UNIFIED & DIVIDED: 2.673 - 0.000 = 2.673] RANGE EFFECTS [PURPOSE: EVALUATE SUBSTANTIVE NUMERICAL IMPACT OF COEFFICIENTS IN A COMPARABLE MANNER] ***

lincom [q01]agencyindzbtoplev2  * 2.673 + [q01]agencyindzbl2dgzb  * 2.673
*
lincom [q05]agencyindzbtoplev2  * 2.673 + [q05]agencyindzbl2dgzb  * 2.673
*
lincom [q10]agencyindzbtoplev2  * 2.673 + [q10]agencyindzbl2dgzb  * 2.673
*
lincom [q15]agencyindzbtoplev2  * 2.673 + [q15]agencyindzbl2dgzb  * 2.673
*
lincom [q20]agencyindzbtoplev2  * 2.673 + [q20]agencyindzbl2dgzb  * 2.673
*
lincom [q25]agencyindzbtoplev2  * 2.673 + [q25]agencyindzbl2dgzb  * 2.673
*
lincom [q30]agencyindzbtoplev2  * 2.673 + [q30]agencyindzbl2dgzb  * 2.673
*
lincom [q35]agencyindzbtoplev2  * 2.673 + [q35]agencyindzbl2dgzb  * 2.673
*
lincom [q40]agencyindzbtoplev2  * 2.673 + [q40]agencyindzbl2dgzb  * 2.673
*
lincom [q45]agencyindzbtoplev2  * 2.673 + [q45]agencyindzbl2dgzb  * 2.673
*
lincom [q50]agencyindzbtoplev2  * 2.673 + [q50]agencyindzbl2dgzb  * 2.673
*
lincom [q55]agencyindzbtoplev2  * 2.673 + [q55]agencyindzbl2dgzb  * 2.673
*
lincom [q60]agencyindzbtoplev2  * 2.673 + [q60]agencyindzbl2dgzb  * 2.673
*
lincom [q65]agencyindzbtoplev2  * 2.673 + [q65]agencyindzbl2dgzb  * 2.673
*
lincom [q70]agencyindzbtoplev2  * 2.673 + [q70]agencyindzbl2dgzb  * 2.673
*
lincom [q75]agencyindzbtoplev2  * 2.673 + [q75]agencyindzbl2dgzb  * 2.673
*
lincom [q80]agencyindzbtoplev2  * 2.673 + [q80]agencyindzbl2dgzb  * 2.673
*
lincom [q85]agencyindzbtoplev2  * 2.673 + [q85]agencyindzbl2dgzb  * 2.673
*
lincom [q90]agencyindzbtoplev2  * 2.673 + [q90]agencyindzbl2dgzb  * 2.673
*
lincom [q95]agencyindzbtoplev2  * 2.673 + [q95]agencyindzbl2dgzb  * 2.673
*
lincom [q99]agencyindzbtoplev2  * 2.673 + [q99]agencyindzbl2dgzb  * 2.673
*
putexcel set "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use12.xlsx", modify
local i=1
foreach h in 01 05 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 99 {
quietly lincom [q`h']agencyindzbtoplev2 * 2.673  + [q`h']agencyindzbl2dgzb * 2.673
gen pointestimates`h' = r(estimate)
gen cilower`h' = pointestimates`h' - (1.96*r(se))
gen ciupper`h' = pointestimates`h' + (1.96*r(se))
putexcel A`i'= `h'
putexcel B`i'=(r(estimate)) 
putexcel C`i'=(r(estimate) - (1.96*r(se))) 
putexcel D`i'=(r(estimate) + (1.96*r(se))) 
local i=`i'+1
}
import excel "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/use12.xlsx", sheet("Sheet1") clear

twoway (rarea C D A, color(gs10)) (line B A, color(gs0)), title("Decision Maker Independence" "(Divided Partisan Control)", size(medsmall)) ytitle("Confirmation Delay (Days)") xtitle("") ylabel(-50(50)100, angle(0)) legend(off) yline(0,lcolor(gs8) lpattern(dash))
* 
graph save "Graph" "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/FigureD4B2.gph"

graph export "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/EPS/Appendix D/FigureD4B2.eps"
 
*
*
*
*graph D2.3
cd "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D"

gr combine FigureD4B1.gph  FigureD4B2.gph, b1title("Quantiles") iscale(1) 

graph save "Graph" "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Appendix D/FigureD23Acomb.gph"

graph export "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/EPS/Appendix D/FigureD23Acomb.eps"
*


***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
 
 
 
 
log close





